﻿using System;
using System.ComponentModel.DataAnnotations;

namespace SimpleScrum.Core.Entities
{
    public class UserStoryTask
    {
        [Display(Name = "Task ID")]
        public virtual Guid Id { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "Task Name")]
        public virtual String Name { get; set; }
        
        [Required]
        [Display(Name = "Work Hour")]
        public virtual int WorkHour { get; set; }

        [Required]
        [Display(Name = "Assign To")]
        public virtual Users AssignTo { get; set; }

        [Required]
        [DataType(DataType.DateTime)]
        [Display(Name = "Assign Date")]
        public virtual DateTime AssignDate { get; set; }

        [Required]
        [Display(Name = "User Story")]
        public virtual UserStory UserStory { get; set; }
    }
}